<?php
/**
 * 左右分页
 * @author zelome@163.com
 * $Id: index.php 10 2011-02-23 07:01:48Z sbnnest@gmail.com $
 */

require_once('../common.inc.php');

class contentframe extends Action
{
	
	
	function doDefault()
	{
		$page = $this->app->page();
		$page->params['template'] = 'content/contentframe.tpl';
		$cmd = $_GET('cmd');
		if($cmd ==  'userlist'){
			$page1 = 'uerlist.php';
		}
		$page->params('page1',$page1);
		$page->output();
	}
	
	/**
	 * 进入用户管理操作
	 */
	function doUserlist()
	{
		$page = $this->app->page();
		$page->params['template'] = 'content/contentframe.tpl';
		$page1 = 'userlist.php';
		$page->value('page1',$page1);
		
		$page->value('page2','userlist.php?do=addpage');
		$page->output();
	}
	
	/**
	 * 进入标签管理
	 */
	function doTaglist()
	{
		$page = $this->app->page();
		$page->params['template'] = 'content/contentframe.tpl';
		$page1 = 'taglist.php';
		$page->value('page1',$page1);
		
		$page->value('page2','taglist.php?do=addpage');
		$page->output();
	}
	
	/**
	 * 进入分类管理
	 */
	function doCategorylist()
	{
		$page = $this->app->page();
		$page->params['template'] = 'content/contentframe.tpl';
		$page1 = 'categorylist.php';
		$page->value('page1',$page1);
		
		$page->value('page2','categorylist.php?do=addpage');
		$page->output();
	}
	
}
											
$app->run();

?>
